package cn.stylefeng.guns.modular.tool.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 云仓派工表
 * </p>
 * @author zhucx
 * @since 2023-04-18
 */
@TableName("tool_work")
@Data
public class ToolWork implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 状态
     */
    @TableField("state")
    private String state;

    /**
     * 作业id
     */
    @TableField("wave_id")
    private Long waveId;

    /**
     *客户id
     */
    @TableField("customer_id")
    private Long customerId;

    /**
     * 客户名称
     */
    @TableField("customer_name")
    private String customerName;

    /**
     * 波次
     */
    @TableField("wellen")
    private String wellen;

    /**
     * 小组id
     */
    @TableField("arrange_id")
    private Long arrangeId;

    /**
     * 小组编号
     */
    @TableField("arrange_number")
    private String arrangeNumber;

    /**
     * 人员
     */
    @TableField("user_name")
    private String userName;

    /**
     * 生成补货任务
     */
    @TableField("addTask")
    private String addTask;

    /**
     * 交接次数
     */
    @TableField("handover")
    private String handover;

    /**
     * 是否直贴
     */
    @TableField("direct")
    private String direct;

    /**
     * 包材编号
     */
    @TableField("pack_number")
    private String packNumber;

    /**
     * v1
     */
    @TableField("v1")
    private String v1;

    /**
     * v2
     */
    @TableField("v2")
    private String v2;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;

    /**
     * 交付客户id
     */
    @TableField("deliver_id")
    private Long deliverId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 操作人员
     */
    @TableField("create_name")
    private String createName;

    @Override
    public String toString() {
        return "ToolWork{" +
        "id=" + id +
        ", state=" + state +
        ", waveId=" + waveId +
        ", wellen=" + wellen +
        ", arrangeId=" + arrangeId +
        ", arrangeNumber=" + arrangeNumber +
        ", userName=" + userName +
        ", addTask=" + addTask +
        ", handover=" + handover +
        ", direct=" + direct +
        ", packNumber=" + packNumber +
        ", v1=" + v1 +
        ", v2=" + v2 +
        ", createTime=" + createTime +
        ", createName=" + createName +
        "}";
    }
}
